From: Marco Trevisan (TreviƱo) Date: Fri, 19 Jan 2018 15:31:01 +0000 (+0100) Subject: workspaceThumbnail: only update _porthole if the overview is visible X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~111 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5fcf40b973286fd442148ee3348becd493c8206d;p=gnome-shell.git workspaceThumbnail: only update _porthole if the overview is visible Otherwise it happens that porthole is computed again after that the overlay is hidden (triggered by a layout reallocation) and thus not regenerated again afterwards. https://bugzilla.gnome.org/show_bug.cgi?id=792687 --- diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index 7d5d2c08c..5565a1e41 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -1159,7 +1159,7 @@ var ThumbnailsBox = new Lang.Class({ // The "porthole" is the portion of the screen that we show in the // workspaces _ensurePorthole() { - if (!Main.layoutManager.primaryMonitor) + if (!Main.layoutManager.primaryMonitor || !Main.overview.visible) return false; if (!this._porthole)